import Vue from "vue";
import Router from "vue-router";
import Home from "@/components/Home.vue";
import Manor from "@/components/Manor.vue";
import Transport from "@/components/Transport.vue";
import Storage from "@/components/Storage.vue";
import Produce from "@/components/Product.vue";
import Quality from "@/components/Quality.vue";
import Producer from "@/components/Producer.vue";
import Area from "@/components/Area.vue";

Vue.use(Router);

export default new Router({
  routes: [{
      path: "/",
      redirect: "/product/1"
    },
    {
      path: "/product/:id",
      name: "Home",
      component: Home
    },
    {
      path: "/manor/:id",
      name: "Manor",
      component: Manor
    },
    {
      path: "/area/:id/:index",
      name: "Area",
      component: Area
    },
    {
      path: "/transport/:id",
      name: "Transport",
      component: Transport
    },
    {
      path: "/storage/:id",
      name: "Storage",
      component: Storage
    },
    {
      path: "/produce/:id",
      name: "Produce",
      component: Produce
    },
    {
      path: "/quality/:id",
      name: "Quality",
      component: Quality
    },
    {
      path: "/producer/:id",
      name: "Producer",
      component: Producer
    }
  ]
});
